home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / mawk10.zip / SUN_OS40.H < prev    next >
C/C++ Source or Header  |  1991-10-05  |  1KB  |  61 lines

  1.  
  2. /********************************************
  3. sun_os40.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the AWK programming language.
  8.  
  9. Mawk is distributed without warranty under the terms of
  10. the GNU General Public License, version 2, 1991.
  11. ********************************************/
  12.  
  13.  
  14. /* $Log:    sun_os40.h,v $
  15.  * Revision 4.1  91/09/25  11:41:35  brennan
  16.  * VERSION 1.0
  17.  * 
  18.  * Revision 3.4  91/08/26  13:04:38  brennan
  19.  * changed file name
  20.  * 
  21.  * Revision 3.3  91/08/23  08:48:42  brennan
  22.  * discovered strtod() bug can also happen on sun3
  23.  * 
  24.  * Revision 3.2  91/08/13  09:04:13  brennan
  25.  * VERSION .9994
  26.  * 
  27.  * Revision 3.1  91/06/07  10:38:50  brennan
  28.  * VERSION 0.995
  29.  * 
  30. */
  31.  
  32. /* On some, not all, sun4's SunOS4.0.3 there is a bug in strtod().
  33.    strtod("0",0) sets errno to ERANGE sometimes! which announces
  34.    underflow which is not true.
  35.  
  36.    If you get strange error messages:
  37.  
  38.    mawk: line xx: 0 : decimal underflow
  39.  
  40.    then your strtod() is broken and use this file as config.h
  41.  
  42.    Otherwise use generic.h as config.h.
  43.  
  44.    I've talked to Sun and they tell me its a known bug thats
  45.    fixed in 4.1
  46.  
  47.    ----------------
  48.    It can happen on sun3's too. (8/23)
  49. */
  50.  
  51. #ifndef  CONFIG_H
  52. #define  CONFIG_H
  53.  
  54.  
  55. #define  STRTOD_UNDERFLOW_ON_ZERO_BUG  1
  56.  
  57.  
  58. #include "config/Idefault.h"
  59.  
  60. #endif
  61.